package com.yehangtech.designpattern.创建型_单例.demo;

/**
 * 使用内部类
 */
public class Singleton_05 {
    private static class SingletonHandler{
        public static Singleton_05 singleton05=new Singleton_05();
    }
    private Singleton_05(){

    }
    public static Singleton_05 newInstance(){
        return SingletonHandler.singleton05;
    }
}
